<%  
   Response.ContentType = "text/x-component"
   dim Culture
   Culture = Trim(Request.QueryString("UC"))  
   dim FilePath
   FilePath = Trim(Request.QueryString("F"))  
   Public Function GetString(instring)
	    dim t
    	
	    t = GetStringByCulture(instring,Culture)
    	
	    If t = ""  then
		    t= GetStringByCulture(instring,"_default")
	    End If
    	
	    If t = ""  then
		    t= "{"&instring&"}"	
	    End If
	    GetString= t	
    End Function
    
    
   FilePath = Left(request.ServerVariables("PATH_INFO"),InStr(request.ServerVariables("PATH_INFO"),FilePath)+len(FilePath)-1)

    Public Function GetStringByCulture(instring,input_culture)
	    dim scriptname,xmlfilename,doc,temp
	    dim node,selectednode,optionnodelist,errobj
	    dim selectednodes

	    xmlfilename= Server.MapPath(FilePath&"/languages/"&input_culture&".xml")

	    ' Create an object to hold the XML
	    set doc = server.CreateObject("Microsoft.XMLDOM")

	    ' For ASP, wait until the XML is all ready before continuing
	    doc.async = False

	    ' Load the XML file or return an error message and stop the script
	    if not Doc.Load(xmlfilename) then
		    Response.Write "Failed to load the language text from the XML file.<br>"
		    Response.End
	    end if

	    ' Make sure that the interpreter knows that we are using XPath as our selection language
	    doc.setProperty "SelectionLanguage", "XPath"

	    set selectednode= doc.selectSingleNode("/resources/resource[@name='"&instring&"']")
	    if IsObject(selectednode) and not selectednode is nothing  then
		    GetStringByCulture=CuteEditor_Decode(selectednode.text)
	    else
		    GetStringByCulture=""		
	    end if
    End Function    
    
     PUBLIC FUNCTION CuteEditor_Decode(input_str)        
	    input_str=Replace(input_str,"#1","<")
	    input_str=Replace(input_str,"#2",">")
	    input_str=Replace(input_str,"#3","&")
	    input_str=Replace(input_str,"#4","*")
	    input_str=Replace(input_str,"#5","o")
	    input_str=Replace(input_str,"#6","O")
	    input_str=Replace(input_str,"#7","s")
	    input_str=Replace(input_str,"#8","S")
	    input_str=Replace(input_str,"#9","e")
	    input_str=Replace(input_str,"#a","E")
	    input_str=Replace(input_str,"#0","#")
	    CuteEditor_Decode = input_str
     END FUNCTION
%>
<PUBLIC:COMPONENT>
	<PUBLIC:EVENT ID="event_oncolorchange" name="oncolorchange" />
	<PUBLIC:EVENT ID="event_oncolorpopup" name="oncolorpopup" />
	<PUBLIC:PROPERTY name="selectedColor" GET="_get_selectedColor" PUT="_set_selectedColor"/>
	<PUBLIC:METHOD name="popupColor" INTERNALNAME="_mtd_popupColor" />
	<PUBLIC:ATTACH EVENT="onclick" ONEVENT="_mtd_onclick()" />
</PUBLIC:COMPONENT>

<script type="text/javascript">
var OxO2ded=["#000000","#993300","#333300","#003300","#003366","#000080","#333399","#333333","#800000","#FF6600","#808000","#008000","#008080","#0000FF","#666699","#808080","#FF0000","#FF9900","#99CC00","#339966","#33CCCC","#3366FF","#800080","#999999","#FF00FF","#FFCC00","#FFFF00","#00FF00","#00FFFF","#00CCFF","#993366","#C0C0C0","#FF99CC","#FFCC99","#FFFF99","#CCFFCC","#CCFFFF","#99CCFF","#CC99FF","#FFFFFF","dialogWidth:500px;dialogHeight:330px;help:0;status:0;resizable:1","disableVisual","","\x3CDIV style=\x27width=140;cursor:default;position:absolute;z-index:88888888;background-color:white;border:0px;overflow:visible;\x27\x3E","length","\x3Ctable cellpadding=0 cellspacing=5 style=\x27width:100%;font-family: Verdana; font-size: 6px; BORDER: #666666 1px solid;\x27 bgcolor=#f9f8f7\x3E\x3Ctr\x3E\x3Ctd\x3E","\x3Ctable cellpadding=0 cellspacing=2 style=\x27font-size: 3px;\x27\x3E","\x3Ctr\x3E","\x3Ctd colspan=10 align=center style=\x22padding:1px;border:solid 1px #f9f8f7;margin:1px\x22 onmouseup=\x22document.all.","uniqueID","._cphtc_sel(this.ColorValue)\x22  ColorValue=\x22\x22 onmouseover=\x22CuteEditor_ColorPicker_ButtonOver(this);\x22\x3E","\x3Ctable cellspacing=0 cellpadding=0 border=0 width=90% style=\x22font-size:3px\x22\x3E","\x3C/table\x3E","\x3C/td\x3E","\x3C/tr\x3E","\x3Ctr\x3E\x3Ctd\x3E\x26nbsp;\x3C/td\x3E\x3C/tr\x3E","\x3Ctd title="," align=center style=\x22padding:1px;border:solid 1px #f9f8f7;\x22 onmouseover=\x22CuteEditor_ColorPicker_ButtonOver(this);\x22 ColorValue=\x22","\x22 onmouseup=\x22document.all.","._cphtc_sel(this.ColorValue);\x22\x3E","\x3Cdiv style=\x22background-color:","; border:solid 1px #808080; width:12px; height:12px; font-size: 3px;\x22\x3E\x26nbsp;\x3C/div\x3E","\x3C/td\x3E\x3C/tr\x3E","\x3Ctd colspan=10 align=center style=\x22padding:1px;border:solid 1px #f9f8f7;\x22 onmouseover=\x22CuteEditor_ColorPicker_ButtonOver(this);\x22 onmouseup=\x22document.all.","._cphtc_dlg();\x22\x3E","innerHTML","body","document","onclick","SELECT","all","visibility","currentStyle","hidden","runtimeStyle","style","_visibility","top","left","display","block","offsetHeight","px","unselectable","on","none"];var colorsArray= new Array(OxO2ded[0],OxO2ded[1],OxO2ded[2],OxO2ded[3],OxO2ded[4],OxO2ded[5],OxO2ded[6],OxO2ded[7],OxO2ded[8],OxO2ded[9],OxO2ded[10],OxO2ded[11],OxO2ded[12],OxO2ded[13],OxO2ded[14],OxO2ded[15],OxO2ded[16],OxO2ded[17],OxO2ded[18],OxO2ded[19],OxO2ded[20],OxO2ded[21],OxO2ded[22],OxO2ded[23],OxO2ded[24],OxO2ded[25],OxO2ded[26],OxO2ded[27],OxO2ded[28],OxO2ded[29],OxO2ded[30],OxO2ded[31],OxO2ded[32],OxO2ded[33],OxO2ded[34],OxO2ded[35],OxO2ded[36],OxO2ded[37],OxO2ded[38],OxO2ded[39]);var ShowMoreColors=true;var dlgurl='<%=FilePath%>/Dialogs/ColorPicker.Asp?<%=Request.ServerVariables("QUERY_STRING") %>&setting=<%= Request.Cookies("CESecurity") %>';function element._cphtc_sel(Ox371){_color=Ox371;event_oncolorchange.fire();} ;function element._cphtc_dlg(){CloseDiv();event_oncolorpopup.fire();var Ox372=OxO2ded[40];if(element[OxO2ded[41]]){var Ox373=showModalDialog(dlgurl,{color:Ox374},Ox372);if(Ox373!=null&&Ox373!=false){_color=Ox373;event_oncolorchange.fire();} ;} else {var Ox374=_color;var Ox373=showModalDialog(dlgurl,{color:Ox374,onchange:Ox375},Ox372);if(Ox373!=null&&Ox373!=false){_color=Ox373;} else {_color=Ox374;} ;event_oncolorchange.fire();function Ox375(Oxd9){_color=Oxd9;event_oncolorchange.fire();} ;} ;} ;var _color=OxO2ded[42];function _get_selectedColor(){return _color;} ;function _set_selectedColor(Oxd9){_color=Oxd9;} ;var div;var selects;var isopen=false;function _mtd_onclick(){_mtd_popupColor();} ;function _mtd_popupColor(){if(div==null){div=document.createElement(OxO2ded[43]);var Ox37e=OxO2ded[42];var Ox37f=colorsArray[OxO2ded[44]];var Ox380=8;Ox37e+=OxO2ded[45];Ox37e+=OxO2ded[46];Ox37e+=OxO2ded[47];Ox37e+=OxO2ded[48]+element[OxO2ded[49]]+OxO2ded[50];Ox37e+=OxO2ded[51];Ox37e+='<tr><td width=18><div style="background-color:#000000; border:solid 1px #808080; width:12px; height:12px; font-size: 3px;">&nbsp;</div></td><td align=center style="font:normal 11px verdana;">&nbsp;<%= GetString("Automatic") %></td></tr>';Ox37e+=OxO2ded[52];Ox37e+=OxO2ded[53];Ox37e+=OxO2ded[54];Ox37e+=OxO2ded[55];for(var i=0;i<Ox37f;i++){if((i%Ox380)==0){Ox37e+=OxO2ded[47];} ;Ox37e+=OxO2ded[56]+colorsArray[i]+OxO2ded[57]+colorsArray[i]+OxO2ded[58]+element[OxO2ded[49]]+OxO2ded[59];Ox37e+=OxO2ded[60]+colorsArray[i]+OxO2ded[61];Ox37e+=OxO2ded[53];if(((i+1)>=Ox37f)||(((i+1)%Ox380)==0)){Ox37e+=OxO2ded[54];} ;} ;Ox37e+=OxO2ded[55];Ox37e+=OxO2ded[52];Ox37e+=OxO2ded[62];if(ShowMoreColors){Ox37e+=OxO2ded[47];Ox37e+=OxO2ded[63]+element[OxO2ded[49]]+OxO2ded[64];Ox37e+=OxO2ded[51];Ox37e+='<tr><td width=18><div style="background-color:#000000; border:solid 1px #808080; width:12px; height:12px;font-size: 3px;"></div></td><td align=center style="font-size:11px"><%= GetString("MoreColors") %></td></tr>';Ox37e+=OxO2ded[52];Ox37e+=OxO2ded[53];Ox37e+=OxO2ded[54];} ;Ox37e+=OxO2ded[52];div[OxO2ded[65]]=Ox37e;element[OxO2ded[67]][OxO2ded[66]].appendChild(div);div[OxO2ded[68]]=CloseDiv;} ;if(isopen){CloseDiv();} ;isopen=true;selects=[];var Ox82=element[OxO2ded[67]][OxO2ded[70]].tags(OxO2ded[69]);for(var i=0;i<Ox82[OxO2ded[44]];i++){var Ox381=Ox82[i];if(Ox381[OxO2ded[72]][OxO2ded[71]]!=OxO2ded[73]){selects[selects[OxO2ded[44]]]=Ox381;var Ox382=Ox381[OxO2ded[74]]||Ox381[OxO2ded[75]];Ox382[OxO2ded[76]]=Ox382[OxO2ded[71]];Ox382[OxO2ded[71]]=OxO2ded[73];} ;} ;div[OxO2ded[75]][OxO2ded[77]]=0;div[OxO2ded[75]][OxO2ded[78]]=0;div[OxO2ded[75]][OxO2ded[79]]=OxO2ded[80];var Ox11d=CalcPosition(div,element);Ox11d[OxO2ded[77]]+=element[OxO2ded[81]];AdjustMirror(div,element,Ox11d);div[OxO2ded[75]][OxO2ded[78]]=Ox11d[OxO2ded[78]]+OxO2ded[82];div[OxO2ded[75]][OxO2ded[77]]=Ox11d[OxO2ded[77]]+OxO2ded[82];var Ox82=div[OxO2ded[70]];for(var i=0;i<Ox82[OxO2ded[44]];i++){Ox82[i][OxO2ded[83]]=OxO2ded[84];} ;div.focus();var Ox383= new CaptureManager(element,handlelosecapture);Ox383.AddElement(div);} ;function handlelosecapture(){CloseDiv();} ;function CloseDiv(){CaptureManager.Unregister(element);isopen=false;div[OxO2ded[75]][OxO2ded[79]]=OxO2ded[85];for(var i=0;i<selects[OxO2ded[44]];i++){var Ox381=selects[i];Ox381[OxO2ded[74]][OxO2ded[71]]=Ox381[OxO2ded[74]][OxO2ded[76]];} ;} ;

</script>

<script type="text/javascript">


var OxOdf9b=["body","document","compatMode","CSS1Compat","documentElement","scrollLeft","scrollTop","clientLeft","clientTop","parentElement","position","currentStyle","absolute","relative","left","top","clientWidth","clientHeight","offsetWidth","offsetHeight","element","capturemanager","\x3CDIV style=\x27width:0px;height:0px;left:0px;top:0px;position:absolute\x27\x3E","afterBegin","onlosecapture","onmousedown","onmousemove","onmouseover","onmouseout","length"];function GetScrollPosition(Ox3e){var b=window[OxOdf9b[1]][OxOdf9b[0]];var p=b;if(window[OxOdf9b[1]][OxOdf9b[2]]==OxOdf9b[3]){p=window[OxOdf9b[1]][OxOdf9b[4]];} ;if(Ox3e==b){return {left:0,top:0};} ;with(Ox3e.getBoundingClientRect()){return {left:p[OxOdf9b[5]]+left,top:p[OxOdf9b[6]]+top};} ;} ;function GetClientPosition(Ox3e){var b=window[OxOdf9b[1]][OxOdf9b[0]];var p=b;if(window[OxOdf9b[1]][OxOdf9b[2]]==OxOdf9b[3]){p=window[OxOdf9b[1]][OxOdf9b[4]];} ;if(Ox3e==b){return {left:-p[OxOdf9b[5]],top:-p[OxOdf9b[6]]};} ;with(Ox3e.getBoundingClientRect()){return {left:left-p[OxOdf9b[7]],top:top-p[OxOdf9b[8]]};} ;} ;function GetStandParent(Ox3e){for(var Ox38a=Ox3e[OxOdf9b[9]];Ox38a!=null;Ox38a=Ox38a[OxOdf9b[9]]){var Ox1ab=Ox38a[OxOdf9b[11]][OxOdf9b[10]];if(Ox1ab==OxOdf9b[12]||Ox1ab==OxOdf9b[13]){return Ox38a;} ;} ;return window[OxOdf9b[1]][OxOdf9b[0]];} ;function CalcPosition(Ox38c,Ox3e){var Ox38d=GetScrollPosition(Ox3e);var Ox38e=GetScrollPosition(GetStandParent(Ox38c));var Ox38f=GetStandParent(Ox38c);return {left:Ox38d[OxOdf9b[14]]-Ox38e[OxOdf9b[14]]-Ox38f[OxOdf9b[7]],top:Ox38d[OxOdf9b[15]]-Ox38e[OxOdf9b[15]]-Ox38f[OxOdf9b[8]]};} ;function AdjustMirror(Ox38c,Ox3e,Ox11d){var Ox391=window[OxOdf9b[1]][OxOdf9b[0]][OxOdf9b[16]];var Ox392=window[OxOdf9b[1]][OxOdf9b[0]][OxOdf9b[17]];if(window[OxOdf9b[1]][OxOdf9b[2]]==OxOdf9b[3]){Ox391=window[OxOdf9b[1]][OxOdf9b[4]][OxOdf9b[16]];Ox392=window[OxOdf9b[1]][OxOdf9b[4]][OxOdf9b[17]];} ;var Ox393=Ox38c[OxOdf9b[18]];var Ox394=Ox38c[OxOdf9b[19]];var Ox395=GetClientPosition(GetStandParent(Ox38c));var Ox396={left:Ox395[OxOdf9b[14]]+Ox11d[OxOdf9b[14]]+Ox393/2,top:Ox395[OxOdf9b[15]]+Ox11d[OxOdf9b[15]]+Ox394/2};var Ox397={left:Ox395[OxOdf9b[14]]+Ox11d[OxOdf9b[14]],top:Ox395[OxOdf9b[15]]+Ox11d[OxOdf9b[15]]};if(Ox3e!=null){var Ox398=GetClientPosition(Ox3e);Ox397={left:Ox398[OxOdf9b[14]]+Ox3e[OxOdf9b[18]]/2,top:Ox398[OxOdf9b[15]]+Ox3e[OxOdf9b[19]]/2};} ;var Ox399=true;if(Ox396[OxOdf9b[14]]-Ox393/2<0){if((Ox397[OxOdf9b[14]]*2-Ox396[OxOdf9b[14]])+Ox393/2<=Ox391){Ox396[OxOdf9b[14]]=Ox397[OxOdf9b[14]]*2-Ox396[OxOdf9b[14]];} else {if(Ox399){Ox396[OxOdf9b[14]]=Ox393/2+4;} ;} ;} else {if(Ox396[OxOdf9b[14]]+Ox393/2>Ox391){if((Ox397[OxOdf9b[14]]*2-Ox396[OxOdf9b[14]])-Ox393/2>=0){Ox396[OxOdf9b[14]]=Ox397[OxOdf9b[14]]*2-Ox396[OxOdf9b[14]];} else {if(Ox399){Ox396[OxOdf9b[14]]=Ox391-Ox393/2-4;} ;} ;} ;} ;if(Ox396[OxOdf9b[15]]-Ox394/2<0){if((Ox397[OxOdf9b[15]]*2-Ox396[OxOdf9b[15]])+Ox394/2<=Ox392){Ox396[OxOdf9b[15]]=Ox397[OxOdf9b[15]]*2-Ox396[OxOdf9b[15]];} else {if(Ox399){Ox396[OxOdf9b[15]]=Ox394/2+4;} ;} ;} else {if(Ox396[OxOdf9b[15]]+Ox394/2>Ox392){if((Ox397[OxOdf9b[15]]*2-Ox396[OxOdf9b[15]])-Ox394/2>=0){Ox396[OxOdf9b[15]]=Ox397[OxOdf9b[15]]*2-Ox396[OxOdf9b[15]];} else {if(Ox399){Ox396[OxOdf9b[15]]=Ox392-Ox394/2-4;} ;} ;} ;} ;Ox11d[OxOdf9b[14]]=Ox396[OxOdf9b[14]]-Ox395[OxOdf9b[14]]-Ox393/2;Ox11d[OxOdf9b[15]]=Ox396[OxOdf9b[15]]-Ox395[OxOdf9b[15]]-Ox394/2;} ;function CaptureManager(element,handlelosecapture){if(CaptureManager[OxOdf9b[20]]&&CaptureManager[OxOdf9b[20]][OxOdf9b[21]]){CaptureManager[OxOdf9b[20]][OxOdf9b[21]].Unregister();} ;var Ox39b=true;var Ox39c=[];var Ox39d=true;var Ox39e=false;element[OxOdf9b[21]]=Ox3a3;CaptureManager[OxOdf9b[20]]=element;Ox3a3.AddElement(element);var Ox39f=element[OxOdf9b[1]].createElement(OxOdf9b[22]);element[OxOdf9b[1]][OxOdf9b[0]].insertAdjacentElement(OxOdf9b[23],Ox39f);Ox39f.attachEvent(OxOdf9b[24],Ox3a4);Ox3a0(Ox39f);Ox39f.setCapture(true);Ox39e=true;return Ox3a3;function Ox3a0(Ox3a1){Ox3a1.attachEvent(OxOdf9b[25],Ox3a5);Ox3a1.attachEvent(OxOdf9b[26],Ox3a7);Ox3a1.attachEvent(OxOdf9b[27],Ox3a9);Ox3a1.attachEvent(OxOdf9b[28],Ox3aa);} ;function Ox3a2(Ox3a1){Ox3a1.detachEvent(OxOdf9b[25],Ox3a5);Ox3a1.detachEvent(OxOdf9b[26],Ox3a7);Ox3a1.detachEvent(OxOdf9b[27],Ox3a9);Ox3a1.detachEvent(OxOdf9b[28],Ox3aa);} ;function Ox3a3(){} ;function Ox3a3.Unregister(){Ox39f.detachEvent(OxOdf9b[24],Ox3a4);Ox3a2(Ox39f);Ox39f.removeNode(true);for(var i=0;i<Ox39c[OxOdf9b[29]];i++){var Ox3a1=Ox39c[i];Ox3a2(Ox3a1);} ;Ox39b=false;element[OxOdf9b[21]]=null;CaptureManager[OxOdf9b[20]]=null;if(Ox39e){Ox39e=false;Ox39f.releaseCapture();Ox3a3.FireLoseCapture();} ;} ;function Ox3a3.AddElement(Ox3a1){Ox3a0(Ox3a1);Ox39c[Ox39c[OxOdf9b[29]]]=Ox3a1;} ;function Ox3a3.DelElement(Ox3a1){var len=Ox39c[OxOdf9b[29]];for(var i=0;i<len;i++){if(Ox39c[i]==Ox3a1){Ox3a2(Ox3a1);for(var j=i;j<len-1;j++){Ox39c[j]=Ox39c[j+1];} ;Ox39c[OxOdf9b[29]]=Ox39c[OxOdf9b[29]]-1;return ;} ;} ;} ;function Ox3a3.FireLoseCapture(){handlelosecapture();} ;function Ox3a4(){if(Ox39e){Ox39e=false;try{Ox3a3.FireLoseCapture();} finally{Ox3a3.Unregister();} ;} ;} ;function Ox3a5(){var Ox3a6=element[OxOdf9b[1]].elementFromPoint(event.clientX,event.clientY);for(var i=0;i<Ox39c[OxOdf9b[29]];i++){var Ox3a1=Ox39c[i];if(Ox3a1.contains(Ox3a6)){return ;} ;} ;Ox3a3.Unregister();} ;function Ox3a7(){var Ox3a6=element[OxOdf9b[1]].elementFromPoint(event.clientX,event.clientY);Ox3a8(Ox3a6);} ;function Ox3a8(Ox3a6){for(var i=0;i<Ox39c[OxOdf9b[29]];i++){var Ox3a1=Ox39c[i];if(Ox3a1.contains(Ox3a6)){if(Ox39e){Ox39e=false;Ox39f.releaseCapture();} ;return ;} ;} ;if(!Ox39e){Ox39e=true;Ox39f.setCapture(true);} ;} ;function Ox3a9(){var Ox3a6=element[OxOdf9b[1]].elementFromPoint(event.clientX,event.clientY);Ox39d=false;for(var i=0;i<Ox39c[OxOdf9b[29]];i++){var Ox3a1=Ox39c[i];if(Ox3a1.contains(event.fromElement)){return ;} ;if(Ox3a1.contains(Ox3a6)){if(Ox39e){Ox39e=false;Ox39f.releaseCapture();} ;} ;} ;} ;function Ox3aa(){var Ox3a6=element[OxOdf9b[1]].elementFromPoint(event.clientX,event.clientY);Ox39d=false;for(var i=0;i<Ox39c[OxOdf9b[29]];i++){var Ox3a1=Ox39c[i];if(Ox3a1.contains(event.toElement)){return ;} ;} ;if(!Ox39e){Ox39e=true;Ox39f.setCapture(true);} ;} ;} ;function CaptureManager.Register(element,handlelosecapture){return  new CaptureManager(element,handlelosecapture);} ;function CaptureManager.Unregister(element){if(element&&element[OxOdf9b[21]]){element[OxOdf9b[21]].Unregister();} ;} ;
</script>
